package com.flyco.modules.stm.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.flyco.modules.fms.vo.FmsReportVO;
import com.flyco.modules.oms.entity.OmsOrderItemGrossProfit;
import com.flyco.modules.stm.mapper.StmOrderItemGrossProfitMapper;
import com.flyco.modules.stm.service.IStmOrderItemGrossProfitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Date;
import java.util.List;

/**
 * @Description: 订单商品毛利
 * @Author: flyco
 * @Date:   2021-03-22
 * @Version: V1.0
 */
@DS("store")
@Service
public class StmOrderItemGrossProfitServiceImpl extends ServiceImpl<StmOrderItemGrossProfitMapper, OmsOrderItemGrossProfit> implements IStmOrderItemGrossProfitService {

    @Autowired
    private StmOrderItemGrossProfitMapper stmOrderItemGrossProfitMapper;

    @Override
    public List<FmsReportVO> getFmsReport(Date dayStart, Date dayEnd) {
        return stmOrderItemGrossProfitMapper.getFmsReport(dayStart, dayEnd);
    }
}
